package net;

/**
 * This class exists for the sole purpose of accepting commands from a BeanReader.
 * It uses the "get/set" bean idiom to trick the BeanReader into thinking that
 * it's setting properties of this object.
 * The first child of an XML element representing a <code>ReactorProxy</code>
 * should be an idref to the reactor object that will accept its reactees.
 */
public abstract class ReactorProxy<R>
{
	/**
	 * A property setter that allows a BeanReader to tell us where to send
	 * received reactees.
	 * @param reactor The reactor to which we will send received reactees.
	 */
	public void setReactor(R reactor) {
		this.reactor = reactor;
	}

	public R getReactor() {
		return reactor;
	}

	private R reactor = null;
}
